Hello
I’d like PagerDuty to send notifications to a Microsoft Teams channel. I’d need to be able to configure that using Terraform. As I didn’t find any way to configure the bot using Terraform, I’m looking into using Webhooks to make the connection between PagerDuty and Teams.
(If there’d be a way to configure the Microsoft Teams Integration in PagerDuty using Terraform, I’d be all ears!)
On the Integrations ⇒ Generic Webhooks (V3) page, I added a New Webhook and pasted the URL to the Incoming Webhook Connector setup in Teams (URL: https://company.webhook.office.com/webhookb2/…@…/IncomingWebhook/…/…).
But when an incident gets created, nothing shows up in the Teams channel.
Could it be, that it’s not using a correct body?
When curl
'ing, at least this has to be used:
$ curl -v -X POST -d '{"text":"Hello World!"}' https://company.webhook.office.com/webhookb2/…@…/IncomingWebhook/…/…
When I don’t use {"text":"Hello World!"}
as body, the message doesn’t show up; ie. curl … -d "Hello World!" …
does not work.
So…
How do I configure the body of a V3 Webhook?
Thanks.